package cn.micro.system.manage.entity;
import cn.micro.system.manage.common.vaildate.ValidateGroup;
import cn.micro.system.manage.entity.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;

/**
 * <p>
 * 角色信息表
 * </p>
 *
 * @author wr
 * @since 2023-12-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysDimRole extends BaseEntity {

    private static final long serialVersionUID = 1L;



    /**
     * 角色名称
     */
    @NotEmpty(message = "角色名称不能为空",groups = ValidateGroup.add.class)
    private String roleName;

    /**
     * 角色编码
     */
    @NotEmpty(message = "角色编码不能为空",groups = ValidateGroup.add.class)
    private String roleCode;

    /**
     * 描述
     */
    private String description;



    public static final String ID = "id";

    public static final String ROLE_NAME = "role_name";

    public static final String ROLE_CODE = "role_code";

    public static final String DESCRIPTION = "description";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String IS_DELETED = "is_deleted";

}
